package VN.EDU.IMIC.DEVELOPER.NGUYENTHUYOANH_Array01;

public class Models {

	public int DemTrenTB(int a[],int vitriketthuc)
	{
		int dem=0;
		for(int i=0;i<=vitriketthuc;i++)
		{
			if(a[i]>=5)
				dem++;
				
		}
		return dem;
	}
	public int DemDuoiTB(int a[],int vitriketthuc)
	{
		int dem=0;
		for(int i=0;i<=vitriketthuc;i++)
		{
			if(a[i]<5)
				dem++;
				
		}
		return dem;
	}
	
	
}
